
import { service } from 'common/http.js'


// 查询轮播图
export function  findSwipers (params) {
	return service({
		url : '/swiper/findAll',
		method :'GET',
		data : params
	})
}

// 获取所有艺术作品
export const findAllArtWorks = (params) => {
	return service({
		url : '/artWork/findAllByPage',
		method :'GET',
		data : params
	})
}

// 登录
export const login = (data) => {
	return service({
		url : '/user/login',
		method :'POST',
		data : data
	})
}

// 获取热门数据
export const getHotList = (params) => {
	return service({
		url : '/hot/findAllByPage',
		method :'GET',
		data : params
	})
}